﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SGTZDMAIN.aspx.cs" Inherits="DQYT.HTDZ.Web.Views.SGTZD.SGTZDMAIN" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>示功图诊断</title>
       <link href="../../easyui/themes/default/easyui.css" rel="stylesheet" type="text/css" />
       <link href="../../easyui/themes/icon.css" rel="stylesheet" type="text/css" />
      
       <link href="css/SGTZDCSS.css" rel="stylesheet" type="text/css" />
        <link href="css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"/>
       <link href="css/main.css" rel="stylesheet" type="text/css" />

       <script type="text/javascript" src="js/jquery.min.js"></script>
       <script src="js/highcharts.js" type="text/javascript"></script>
       <script type="text/javascript" src="js/themes/grid.js"></script>
       <script src="js/slider/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
       <script src="../../easyui/jquery.easyui.min.js" type="text/javascript"></script>
       <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script> 
      
       <script src="js/sgtzd.js" type="text/javascript"></script>

    <script type="text/javascript">
        function gridc(o, a, b, c, d) {

            var t = document.getElementById(o).getElementsByTagName("tr");

            for (var i = 0; i < t.length; i++) {

                t[i].style.backgroundColor = (t[i].sectionRowIndex % 2 == 0) ? a : b;

                t[i].onclick = function () {
                    if (this.x != "1") {
                        this.x = "1";
                        this.style.backgroundColor = d;
                    } else {
                        this.x = "0";
                        this.style.backgroundColor = (this.sectionRowIndex % 2 == 0) ? a : b;
                    }
                }

                t[i].onmouseover = function () {
                    if (this.x != "1") this.style.backgroundColor = c;
                }

                t[i].onmouseout = function () {
                    if (this.x != "1") this.style.backgroundColor = (this.sectionRowIndex % 2 == 0) ? a : b;
                }
            }
        }

        $(function () {


            $('#tt').datagrid({
                onLoadSuccess: function () {
                    $('#tt').datagrid('getPager').pagination({
                        pageSize: 20, //每页显示的记录条数，默认为10     
                        pageList: [10, 15, 20, 25, 30], //可以设置每页记录条数的列表     
                        beforePageText: '第', //页数文本框前显示的汉字     
                        afterPageText: '页',
                        displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录'

                    });

                    var rows = $("#tt").datagrid("getRows");
                    if (rows.length > 0) {
                        var row = rows[0];
                        currentID = row.ID;
                        // $("tt").datagrid("selectRow", 1);
                    }
                }
            });



            //设置分页控件     
            //            $('#tt').datagrid('getPager').pagination({
            //                pageSize: 20, //每页显示的记录条数，默认为10     
            //                pageList: [10, 15, 20, 25, 30], //可以设置每页记录条数的列表     
            //                beforePageText: '第', //页数文本框前显示的汉字     
            //                afterPageText: '页',
            //                displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录'

            //            });

            $('#ImBtn_search').click(function () {

                var strUrl = 'SGTZDMAIN_Handler.aspx?';
                if ($('#checkIsWellid').attr("checked"))
                    strUrl = strUrl + "id=" + $('#ddllwellid').val() + '&';
                strUrl = strUrl + 'TimeS=' + $("input[name=" + 'txtTs' + "]").val() + '&TimeE=' + $("input[name=" + 'txtTe' + "]").val();

                $('#tt').datagrid({
                    url: strUrl
                });
            });

        });

       //弹出添加诊断建议页面
        function btn_tjzd_onclick() {
            parent.openZD($('#tt').datagrid('getSelected').ID);
        }   

</script>

	
    <style type="text/css">
        #progress1
        {
            width: 350px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <div id="left_booter">
       
       
       
   </div>
    <div>
       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
  <tr>
    <td width="350" rowspan="3" valign="top"><table width="350" border="0" cellpadding="00" cellspacing="0">
      <tr>
        <td valign="top" ><table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
            <tr>
              <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="31" background="images/dsd-1.jpg"><span class="STYLE1 STYLE2">&nbsp;&nbsp;基本信息</span></td>
                  </tr>
              </table></td>
            </tr>
          </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="4" background="images/tdleft-1.jpg"></td>
                <td height="955" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td colspan="2"><!-- 01-01查询部份开始 -->
                          <table width="100%" border="0" align="center" cellpadding="00" cellspacing="0" >
                            <tr>
                              <td height="42" colspan="2" class="STYLE1">&nbsp;开始时间:</td>
                              <td width="130" class="STYLE1"><span class="STYLE10">
                                <asp:TextBox ID="txtTs" runat="server" CssClass="easyui-datetimebox" Width="141"></asp:TextBox>
                              </span></td>
                              <td width="89" rowspan="3" align="center" valign="middle" class="STYLE1">
                           
                                <img id="ImBtn_search" alt=""
                                src="../../images/DrawMult1/12-6.gif" 
                                width="89px" height="59px"></img>  <%--onclick="btnSearch_Click" --%>
                               </td>
                            </tr>
                            <tr>
                              <td height="42" colspan="2" class="STYLE1">&nbsp;结束时间:</td>
                              <td class="STYLE1"><span class="STYLE10">
                                <asp:TextBox ID="txtTe" runat="server" CssClass="easyui-datetimebox" Width="141"></asp:TextBox>
                              </span></td>
                            </tr>
                            <tr>
                              <td width="23" height="42" align="center" class="STYLE1"><asp:CheckBox ID="checkIsWellid" runat="server"  ></asp:CheckBox ></td>
                              <td width="58" class="STYLE1">&nbsp;&nbsp;井号:</td>
                              <td >
                                <asp:DropDownList ID="ddllwellid" runat="server" width="140px" >
                                </asp:DropDownList>
						     </td>
                            </tr>
                          </table>
                        <!-- 01-01查询部份结束 --></td>
                    </tr>
                    
                    <tr align="left">
                      <td colspan="2" align="left" valign="top"><!-- 01-02信息部分开始-->
                         
                        
                     <div style=" height: 350px">
                       
                <table id="tt" class="easyui-datagrid" style="width:300px;height:350px"  url="SGTZDMAIN_Handler.aspx"  
                 title=""   data-options="rownumbers:true, singleSelect:true, autoRowHeight:false, pagination:true,  pageSize:20">    
            <thead> 
            <tr>     
                    <th field="ID" width="50" hidden="true">Item ID</th>     
                    <th field="WELLID" width="110">井号</th>      
                    <th field="JCRQ" width="120" >检测日期</th>   
                      
                </tr>                     
            </thead>     </table>

                  
       
       </div>
      
                         
                        <!--01-02信息部分结束--></td>
                    </tr>
                
                </table></td>
                <td background="images/tdright-1.jpg" width="4"></td>
              </tr>
              <tr>
                <td height="6" colspan="3" background="images/tdbot-1.jpg"></td>
              </tr>
          </table></td>
      </tr>
    </table></td>
    <td align="right" valign="top"><!-- 02 描图区开始 -->
<table width="99%" border="0" align="center" cellpadding="00" cellspacing="0">
  <tr>
    <td valign="top" ><table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
      <tr>
        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr align="left">
            <td height="31" background="images/dsd-1.jpg"><span class="STYLE1 STYLE2">&nbsp;&nbsp;描图区</span></td>
          </tr>
        </table></td>
      </tr>
    </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="4" background="images/tdleft-1.jpg"></td>
            <td valign="top"><!-- 02-01 图形开始 --><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="80"><div id="tab2">
      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="41" align="center"><input type="button" id="btn_LLGT"  value="     " style="width:62px" class="input901" /></td>
          <td height="41" align="center"><input type="button" id="btn_LXGT"  value="     " style="width:62px" class="input905" /></td>
          <td align="center"><input type="button" id="btn_GYBZ"  value="     " style="width:62px" class="input902" /></td>
          <td align="center"><input type="button" id="btn_GDFELS"  value="     " style="width:68px" class="input903" /></td>
          <td align="center"><input type="button" id="btn_YDFELS"  value="     " style="width:68px" class="input904" /></td>
      
          <td align="center"><select name="select2"  style="width:100px; height:30px" class="STYLEZDJY">
            <option value="0">双凡尔漏失</option>
            <option value="">油管漏失</option>
            <option value="">油井结蜡</option>
            <option value="">油井出砂</option>
            <option value="">连抽带喷</option>
            <option value="">抽油杆断脱</option>
          </select></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td height="323" align="center" valign="top" bgcolor="#FFFFFF"><div id="tablist2" >
      <div class="tablist block">
           <p>
             <div id="container" 
                  style="min-width: 500px; height: 350px; margin: 45 1em 0 1em; width: 587px;">
             </div>
           </p>
      </div>
    </div></td>
  </tr>
  <tr>
    <td height="5" align="right" background="images/dsd-3.jpg" bgcolor="F0F4F7"></td>
  </tr>
</table><!--- 02-01 图形t结束 --></td>
            <td background="images/tdright-1.jpg" width="4"></td>
          </tr>
      </table></td>
  </tr>
</table>
<!--  02 描图区结束 --></td><td width="220" align="right" valign="top"><!-- 03 功图特征开始 -->
<table width="220" border="0" align="right" cellpadding="00" cellspacing="0">
  <tr>
    <td valign="top" ><table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
      <tr>
        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr align="left">
            <td height="31" background="images/dsd-1.jpg"><span class="STYLE1 STYLE2">&nbsp;&nbsp;功图特征值&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="image" id="backMain" src="images/backmain.png" alt="Submit"/></span></td>
          </tr>
        </table></td>
      </tr>
    </table>
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
          <tr align="left">
            <td valign="top" align="left"><!-- 03-01特征值开始 -->
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
            <td height="80"></td>
            </tr>
            </table>
              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                 <tr>
                  <td height="40" class="STYLE10"><table width="96%" border="0" align="right" cellpadding="0" cellspacing="0">
                      <tr>
                        <td  width="80" class="STYLE10" align="left">泵冲程：</td>
                        <td><input name="txt_bcc" type="text" id="txt_bcc" style="width:50px"/></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="40" class="STYLE10"><table width="96%" border="0" align="right" cellpadding="0" cellspacing="0">
                      <tr >
                        <td width="80" class="STYLE10" align="left">光杆冲程：</td>
                        <td ><input name="txt_ggcc" type="text"  id="txt_ggcc" style="width:50px"/></td>
                      </tr>
                  </table></td>
                </tr>
                
                <tr>
                  <td height="40" class="STYLE10"><table width="96%" border="0" align="right" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="80" class="STYLE10" align="left">最大载荷：</td>
                        <td class="STYLE10"><input name="txt_xdzhmax" type="text"  id="txt_xdzhmax" style="width:50px"/ ></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="40" class="STYLE10"><table width="96%" border="0" align="right" cellpadding="0" cellspacing="0">
                      <tr>
                        <td width="80" class="STYLE10" align="left">最小载荷：</td>
                        <td class="STYLE10"><input name="txt_xdzhmin" type="text" id="txt_xdzhmin" style="width:50px"/></td>
                      </tr>
                  </table></td>
                </tr>
              </table> 
              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
            <td height="80"></td>
            </tr>
            </table>
             <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
            <td height="80"></td>
            </tr>
            </table>
              <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
            <td height="30" align="center" border="5px"> 
            <input id="btn_tjzd" style="width:112px;"type="button" value="添加诊断信息" 
                                            class="submit" onclick="btn_tjzd_onclick()" />   </td>
            </tr>
            </table>
              <!-- 03-01特征值结束 --></td>
            <td width="4" rowspan="2" background="images/tdright-1.jpg"></td>
          </tr>
          <tr>
            <td height="5" valign="top" background="images/dsd-3.jpg"></td>
          </tr>
      </table></td>
  </tr>
</table>
<!--  03 功图特征结束 --></td>
  </tr>
  <tr>
    <td height="6" colspan="2" align="right" valign="top"></td>
  </tr>
  <tr>
    <td colspan="2" align="right" valign="top"><!-- 04 诊断结论开始 -->
<table width="99%" border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top" ><table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
      <tr>
        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr align="left" >
            <td height="31" background="images/dsd-1.jpg" ><span class="STYLE1 STYLE2">&nbsp;&nbsp;智能诊断</span></td>
          </tr>
        </table></td>
      </tr>
    </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="4" rowspan="4" background="images/tdleft-1.jpg"></td>
            <td height="110" valign="top"><!-- 04-01检测开始 -->
              <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                <td width="10%"></td>
                  <td align="right" width="15%"><div id="img_zongfen"><img src="images/100zong.png" width="98" height="98" ></div></td>
                  <td width="5%"></td>
                  <td width="50%" align="center"> 
                    <div id="progress1">
                      <div class="percent">
                       <div id="div_jian0" align="left"  style="display: none" class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 供液不足</div>
                       <div id="div_jian1" align="left" style="display: none"  class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 固定凡尔漏失</div>
                       <div id="div_jian2" align="left" style="display: none"  class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 游动凡尔漏失</div>
                       <div id="div_jian3"  align="left" style="display: none" class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 双凡尔漏失</div>
                       <div id="div_jian4" align="left"  style="display: none" class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 油管漏失</div>
                       <div id="div_jian5" align="left" style="display: none"  class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 气体影响</div>
                       <div id="div_jian6" align="left" style="display: none"  class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 油井结蜡</div>
                       <div id="div_jian7"  align="left" style="display: none" class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 油井出砂</div>
                       <div id="div_jian8"align="left"  style="display: none"  class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 连抽带喷</div>
                        <div id="div_jian9"  align="left" style="display: none" class="STYLE14">&nbsp;&nbsp;&nbsp;正在检测项： 抽油杆断脱</div>
                       <div id="div_zongfen"align="left"  style="display: none"  class="STYLE14">&nbsp;&nbsp;&nbsp;综合检测得分： 75分</div>
                      </div>
                      <div class="pbar"></div>
                      <div class="elapsed"></div>  
                    </div>
                 </td>
                 <td width="10%"></td>
                  <td  align="center" width="10%"> <input type="button" id="btn_start"   value="             " 
                            style="width:98px" class="btn_start"/></td>
                </tr>
                
              </table>
            <!-- 04-01检测结束 --></td>
            <td width="4" rowspan="4" background="images/tdright-1.jpg"></td>
          </tr>
          <tr >
            <td height="18" align="center" valign="top"><!-- 04-02检测结果开始 --><div style=" overflow:scroll; height:290px">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="STYLE15">
                <tr>
                  <td width="80%" height="55" align="center">供液不足</td>
                  <td width="20%" height="55" align="center"><div id="0EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>
                <tr>
                  <td width="80%" height="55"align="center">固定凡尔漏失</td>
                  <td width="20%" height="55" align="center"><div id="1EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>
                 <tr>
                  <td width="80%" height="55" align="center">游动凡尔漏失</td>
                  <td width="20%" height="55" align="center"><div id="2EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>
                 <tr>
                  <td width="80%" height="55" align="center">双凡尔漏失</td>
                  <td width="20%" height="55" align="center"><div id="3EVAL_VALUE""><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>
                 <tr>
                  <td width="80%" height="55" align="center">油管漏失</td>
                  <td width="20%" height="55" align="center"><div id="4EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>
                  <tr>
                  <td width="80%" height="55" align="center">&nbsp;&nbsp;气体影响：</td>
                  <td width="20%" height="55" align="center"><div id="5EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>
                  <tr>
                  <td width="80%" height="55" align="center">&nbsp;&nbsp;油井结蜡：</td>
                  <td width="20%" height="55" align="center"><div id="6EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>  <tr>
                  <td width="80%" height="55" align="center">&nbsp;&nbsp;油井出砂：</td>
                  <td width="20%" height="55" align="center"><div id="7EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>  
                <tr>
                  <td width="80%" height="55" align="center">&nbsp;&nbsp;连抽带喷：</td>
                  <td width="20%" height="55" align="center"><div id="8EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr> 
                <tr>
                  <td width="80%" height="55" align="center">&nbsp;&nbsp;抽油杆断脱：</td>
                  <td width="20%" height="55" align="center"><div id="9EVAL_VALUE"><img src="images/ydfels.png" width="50" height="50"></div></td>
                </tr>
              </table></div>
              <!-- 04-02检测结果结束 --></td>
          </tr>
          <tr>
            <td height="18" valign="middle" align="left"><span class="STYLE15">&nbsp;&nbsp;诊断建议</span></td>
          </tr>
          <tr>
            <td align="center" valign="top" bgcolor="#F8F9FB" height="80px" >
             <!-- 04-03结论建议开始 --><%--<input name="txtTs251152" type="text" class="STYLE90" id=txtTs251152  style=" height:70px;" test="fjeeel;lljlf;djl;">--%>
             <asp:TextBox ID="txt_zdjy" runat="server" class="STYLEZDJY" Height="70px"></asp:TextBox>
            <!-- 04-03结论建议结束 --></td>
          </tr>
          <tr>
            <td height="6" colspan="3" background="images/tdbot-1.jpg"></td>
          </tr>
      </table></td>
  </tr>
</table>
<!--  04 诊断结论结束 --></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
